<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<script type="text/javascript">
			
			/*var obj = {
				"0" : "a",
				"1" : "b",
				"2" : "c",
				length : 3,
				"push" : Array.prototype.push,
				"splice" : Array.prototype.splice
			}*/
			//属性为索引属性，必须有length属性，最好加push
			
			/*Array.prototype.push = function(target){
				this[this.length] = target;
				this.length ++;
			}*/
			
			/*var obj = {
				"2" : "a",
				"3" : "b",
				"length" : 2,
				"push" : Array.prototype.push
			}
			
			obj.push('c');
			obj.push('d');
			console.log(obj);//2:c  3:d*/
			
			
		</script>
	</body>
</html>
